<?php
	session_start();
	error_reporting (E_ALL ^ E_NOTICE);
	$error = $_GET['error'];
	$errormsg = $_GET['errormsg'];
	$msg = $msg . "<h1>An error has occurred.</h1><br/><p>";
	switch($error) {
		case "login":
			$msg = $msg . "Login error: " . $errormsg;
			break;
		case "navigate":
			$msg = $msg . "Navigation error: " . $errormsg;
			break;
		default:
			$msg = $msg . "Unknown error.";
			break;
	}
	$msg = $msg . "</p>";
	echo $msg;
?>